package com.pxmeta.party.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("kt_gift_lottery")
@ApiModel(value = "礼物对象", description = "礼物表")
@Data
public class GiftLottery implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("宝箱id")
    private Integer giftId;

    @ApiModelProperty("奖励id")
    private Integer rewardGiftId;

    @ApiModelProperty(value = "是否是盈利奖池")
    private Boolean isProfit;

    @ApiModelProperty(value = "每期数量")
    private Integer count;

    @ApiModelProperty(value = "剩余数量")
    private Integer remainingQuantity;

    @ApiModelProperty(value = "抽中触发条件")
    private Integer conditionCount;

    @ApiModelProperty("概率")
    private BigDecimal probability;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
